<?
$client = $GLOBALS['client'];
$returnURL = $GLOBALS['baseURL'];
$url1 = $GLOBALS['remoteUpgradeURL'].'?';

$data['username'] = $client['username'];
$data['expiration_date'] = $client['expire_date'];
$data['type'] = 'renewal';
$data['action'] = 'renewal';
$data['reseller_authenticated'] = 'yes';
$data['wal_proc'] = 'yes';
$data['returnURL'] = $returnURL;

if(is_array($data)){
	while(list($k,$v) = each($data)){
		if($v){
			if(is_array($v)){
				while(list($k1, $v1) = each($v)){
					if($v1) { $options .= "&$k"."[".$k1."]=".urlencode($v1); }
				}
			}else {
				$options .= "&$k=".urlencode($v);
			}
		}
	}
	$url1 = $url1.$options;
}

echo "<div align='center'>";
include($url1);
echo "</div>";
?>